perfect tail arrangement